package a04_字符串;

/**
 * <p>
 * a03_替换数据复习4
 * </p>
 *
 * @author flyduck
 * @since 2025/1/2
 */
public class a03_替换数字复习4 {

    public static void main(String[] args) {
        System.out.println((int)'0');//48
        System.out.println((int)'9');//57
    }

    public static String replaceNumber(String s){
        StringBuilder sb = new StringBuilder();
        for (char c : s.toCharArray()) {
            if((int)c >= 48 && (int)c <= 57){
                sb.append("number");
            }else {
                sb.append(c);
            }
        }
        return sb.toString();
    }
}
